<div data-role="panel" id="side-panel" data-position="right" data-display="push" data-position-fixed="true" >
    <ul data-role="listview" data-icon="false">
        <li class="side-panel-home"><a href="<?php echo site_url()?>dashboard" data-transition="slide">Home</a></li>
        <li class="side-panel-my-account"><a href="<?php echo site_url()?>my-account" data-transition="slide">My Account</a></li>
        <?php if($current_page === 'events-page' || $current_page === 'events-calendar-page' || 
                $current_page === 'events-list-page' || $current_page === 'event-create-page') { ?>
            <li data-role="list-divider" data-theme="e">Events</li>
            <li class="side-panel-events-create"><a href="<?php echo site_url()?>event/event-detail" data-transition="slide">Create Event</a></li>
            <li class="side-panel-events-calendar"><a href="<?php echo site_url()?>events/calendar" data-transition="slide">Event Calendar View</a></li>
            <li class="side-panel-events-list"><a href="<?php echo site_url()?>events/list" data-transition="slide">Event List View</a></li>
            <li data-role="list-divider" data-theme="e"></li>
        <?php }else{?>
            <li class="side-panel-contact"><a href="<?php echo site_url()?>events" data-transition="slide">Events</a></li>
        <?php } ?>
        <?php if($current_page === 'contacts-page' || $current_page === 'clients-page' ||
                $current_page === 'employees-page' || $current_page === 'supplier-page') { ?>
            <li data-role="list-divider" data-theme="e">Contacts</li>
            <li class="side-panel-contact-client"><a href="<?php echo site_url()?>contact/clients" data-transition="slide">Clients</a></li>
            <li class="side-panel-contact-employee"><a href="<?php echo site_url()?>contact/employees" data-transition="slide">Employees</a></li>
            <li class="side-panel-contact-supplier"><a href="<?php echo site_url()?>contact/supplier" data-transition="slide">Supplier</a></li>
            <li data-role="list-divider" data-theme="e"></li>
        <?php }else{?>
            <li class="side-panel-contact"><a href="<?php echo site_url()?>contacts" data-transition="slide">Contact</a></li>
        <?php } ?>
        <?php if($current_page === 'manage-resource-page' || $current_page === 'documents-page' || $current_page === 'reports-page' ||
                $current_page === 'general-checklist-page' || $current_page === 'others-page') { ?>
            <li data-role="list-divider" data-theme="e">Manage Resource</li>
            <li class="side-panel-resource-files"><a href="<?php echo site_url()?>resource/files/documents" data-transition="slide">Files</a></li>
            <li class="side-panel-resource-checklist"><a href="<?php echo site_url()?>resource/checklist" data-transition="slide">General Checklist</a></li>
            <li class="side-panel-resource-others"><a href="<?php echo site_url()?>resource/others" data-transition="slide">Others</a></li>
            <li data-role="list-divider" data-theme="e"></li>
        <?php }else{?>
            <li class="side-panel-resource"><a href="<?php echo site_url()?>resource" data-transition="slide">Manage Resource</a></li>
        <?php } ?>
        <li class="side-panel-statistics"><a href="<?php echo site_url()?>statistics" data-transition="slide">Statistics</a></li>
        <li class="side-panel-messages"><a href="<?php echo site_url()?>messages/inbox" data-transition="slide">Messages</a></li>
        <li data-role="list-divider" data-theme="e"></li>
        <li><a href="<?php echo site_url()?>logout" data-transition="slide" data-direction="reverse">Logout</a></li>
    </ul>
</div>